package com.tiandao.mofang.core.richang;

import com.tiandao.mofang.core.RobotSingleton;
import com.tiandao.mofang.core.util.YiDong;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

/**
 * 地点:九华芳华谷绝智轩
 * 时间:游戏内白天
 *
 */
public class Jhfhgjzx implements Runnable{

    private static Robot robot = RobotSingleton.getInstance();

    public static void main(String[] args) {
//        robot.mouseMove(150,65);
        robot.mouseMove(250,545);
    }
    @Override
    public void run() {

    }
    //开始
    public static void start(){
        try {
            Thread.sleep(5000);
            YiDong.yfsxqdt(860,278,YiDong.QDT_JIU_HUA_Y);
            Thread.sleep(15000);
            //寻找海政司布告栏接取任务  1735,3008布告栏位置
            //骑马
            robot.keyPress(KeyEvent.VK_6);
            robot.keyRelease(KeyEvent.VK_6);
            Thread.sleep(1500);
            //寻路
            YiDong.zouLu("1781","3021");
            Thread.sleep(13000);
            //接取任务
            robot.keyPress(KeyEvent.VK_F);
            robot.keyRelease(KeyEvent.VK_F);
            Thread.sleep(2000);
            robot.mouseMove(250,545);
            Thread.sleep(1500);
            robot.mousePress(InputEvent.BUTTON1_MASK);
            robot.mouseRelease(InputEvent.BUTTON1_MASK);
            Thread.sleep(1500);
            robot.mousePress(InputEvent.BUTTON1_MASK);
            robot.mouseRelease(InputEvent.BUTTON1_MASK);
            Thread.sleep(1500);
            robot.mousePress(InputEvent.BUTTON1_MASK);
            robot.mouseRelease(InputEvent.BUTTON1_MASK);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
